# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-twitter
_pkgname=twitter
pkgver=1.19.6
pkgrel=5
pkgdesc='Python Twitter API.'
arch=('any')
url='https://pypi.org/project/twitter/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1ad54bb3588ca6a23bd0f806220de330df77e4fe717d32250970514b9c3ad2854088274fb3285e78826e9e4bdf2426eccf0712b1b54cb25479a86a2ef65dec4c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

